//
//  FormBasedController.h
//  sl
//
//  Created by Yang Zhang on 4/15/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "SLExtendedViewController.h"

@interface SLFormBasedController : SLExtendedViewController <UITextFieldDelegate, UIScrollViewDelegate>
{
@private
	BOOL keyboardVisible;
	CGPoint originalScrollViewOffset;
	CGRect originalScrollViewFrame;
}

@property (nonatomic, assign) UIView *activeView;

@property (nonatomic, strong) IBOutlet UIScrollView *theScrollView;
@property (nonatomic, strong) IBOutlet UIView *theContentView;


#pragma mark - To overwrite

- (BOOL)validateForm;
- (void)submitForm;

- (IBAction)submitAction:(id)sender;

@end
